#ifndef __LINKTREE_H_
#define __LINKTREE_H_
#define ElementType int 

struct TreeNode
{
    ElementType data;
    struct TreeNode *left;
    struct TreeNode *right;
    struct TreeNode *parent;
};

struct LinkTree
{
    struct TreeNode *root;
};

typedef struct LinkTree LTree;

int InitLTree(LTree *tree);
void InsertTree(LTree *tree,ElementType element);
void InsertDataByParent(LTree *tree);

#endif